home *** CD-ROM | disk | FTP | other *** search
- 'HackSpy v1.0 by Kristopher Dawsey, kt0pher@aol.com
- 'You will need a text field named txtNum on the main form as well as a button
- 'called btnUpdate...these are used to update the file which stores the phone
- 'number to dial when the Page function is called. You also need to place 2 ActiveX
- 'controls on the form, an MSComm control named MSComm1 and an MSWinSck control
- 'named Winsock1. Have fun...
-
- Private Sub btnUpdate_Click()
- Dim intFreeFile As Integer
- Dim strNum As String
- intFreeFile = FileSystem.FreeFile
- strNum = txtNum.Text
- Open ("hs.inf") For Output As intFreeFile
- Write #intFreeFile, strNum
- FileSystem.Reset
- Exit Sub
- End Sub
- Private Sub Form_Load()
- Dim intFreeFile As Integer
- Dim strInput As String
- intFreeFile = FileSystem.FreeFile
- On Error GoTo hnd
- FileSystem.ChDir ("\hs")
- Winsock1.LocalPort = 21
- Winsock1.Listen
- Open ("hs.inf") For Input As #intFreeFile
- Input #intFreeFile, strInput
- FileSystem.Reset
- txtNum.Text = strInput
- Exit Sub
- hnd:
- If Err.Number = 76 Then
- FileSystem.MkDir ("\hs")
- Else
- Exit Sub
- End If
- End Sub
- Private Sub Winsock1_ConnectionRequest(ByVal requestID As Long)
- Dim strTime As String
- Dim strDate As String
- Dim strName As String
- Dim strIP As String
- Dim intFreeFile As Integer
- Page
- strName = Winsock1.RemoteHost
- strIP = Winsock1.RemoteHostIP
- strTime = Time
- strDate = Date
- intFreeFile = FileSystem.FreeFile
- Open ("security.log") For Append As intFreeFile
- Write #intFreeFile, "Connection from " & strName & " (" & strIP & ") on " _
- & strDate & " at " & strTime & "."
- FileSystem.Reset
- If Winsock1.State <> sckClosed Then
- Winsock1.Close
- Winsock1.Accept requestID
- Else
- Exit Sub
- End If
- End Sub
- Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
- Dim strData As Variant
- Dim intFreeFile As Integer
- Dim strTime As String
- Dim strDate As String
- Dim strName As String
- Dim strIP As String
- strName = Winsock1.RemoteHost
- strIP = Winsock1.RemoteHostIP
- strTime = Time
- strDate = Date
- intFreeFile = FileSystem.FreeFile
- Winsock1.GetData strData, vbString
- Open ("datadump.log") For Append As intFreeFile
- Write #intFreeFile, "Received from " & strName & " (" & strIP & ") on " _
- & strDate & " at " & strTime & Chr(13) & "--------------------" & Chr(13) _
- & strData
- FileSystem.Reset
- End Sub
- Private Sub Page()
- Dim intFreeFile As Integer
- Dim strNumber As String
- Dim strIP As String
- intFreeFile = FileSystem.FreeFile
- Open ("hs.inf") For Input As #intFreeFile
- Input #intFreeFile, strNumber
- FileSystem.Reset
- strIP = Winsock1.RemoteHostIP
- While InStr(strIP, ".")
- Mid$(strIP, InStr(strIP, "."), 2) = "*"
- Wend
- With MSComm1
- .PortOpen = True
- .Output = "at h0" & vbCr
- .Output = "at dt " & strNumber & ",,,,,," & strIP & "#" & vbCr
- End With
- End Sub
-